//
//  LBHomeFunction_ScrollCell.m
//  爱鲜蜂
//
//  Created by 李田 on 16/11/19.
//  Copyright © 2016年 tianyao. All rights reserved.
//

#import "LBHomeFunction_ScrollCell.h"

@interface LBHomeFunction_ScrollCell ()
@end

@implementation LBHomeFunction_ScrollCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    return self;
}

#pragma mark - 1.0 搭建界面
- (void)setupUI{
    
    
    
//    //    MARK: 标题
//    UILabel *titleL = [UILabel cz_labelWithText:@"雪原风味酸奶" fontSize:14 color:[UIColor cz_randomColor]];
//    [self.contentView addSubview:titleL];
//    //    MARK: 描述
//    UILabel *desL = [UILabel cz_labelWithText:@"白瓷瓶装10.9元" fontSize:12 color:[UIColor cz_randomColor]];
//    [self.contentView addSubview:desL];
    //    MARK: 图片
    UIImageView *iconImageV = [[UIImageView alloc] init];
    [self.contentView addSubview:iconImageV];

//    iconImageV.image = [UIImage imageNamed:@"meinv_1"];

    
    //    MARK:
//    UIView *tagV = [[UIView alloc] init];
//    [self.contentView addSubview:tagV];
    
    //    MARK: 布局
//    [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.mas_equalTo(10);
//        make.centerX.equalTo(self.contentView);
//    }];
//    
//    [desL mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.equalTo(titleL.mas_bottom).offset(4);
//        make.centerX.equalTo(self.contentView);
//    }];
    
    //    MARK: 关联
    self.iconImageV = iconImageV;
    [iconImageV mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.equalTo(desL.mas_bottom).offset(15);
//        make.left.mas_equalTo(16);
//        make.size.mas_equalTo(CGSizeMake(70, 70));
        make.left.right.equalTo(self.contentView);
        make.size.mas_equalTo(self.contentView.bounds.size);
    }];
}

@end
